package com.ruoyi.common.core.enums;

/**
 * @author zhangqishu
 *
 * 商品模块定义code规则
 */

public enum BizCodeEnum {
    /**
     * 系统未知异常
     */
    UNKNOWN_EXCEPTION(10000,"系统未知异常"),

    /**
     * 参数校验异常
     */
    VALID_EXCEPTION(10001,"参数校验异常");

    private Integer code;
    private String message;

    BizCodeEnum() {
    }

    BizCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
